package com.xbongbong.paas.connection.pojo;

import com.xbongbong.pro.lowcodejsfile.pojo.JsFilePojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 低代码文件封装
 * @author 李少杰
 * @version v1.0.0
 * @date 2022/2/14 16:06
 */
@Getter
@Setter
@ToString
public class LowCodeFilePojo implements Serializable {

    private Long fileId;
    /**
     * 是否发布 0：未发布 1：已发布
     */
    private Integer whetherToPublish;
    /**
     * 未发布版本
     */
    private JsFilePojo release;
    /**
     * 发布版本
     */
    private JsFilePojo unreleased;

    public LowCodeFilePojo(Long fileId, Integer whetherToPublish, JsFilePojo release, JsFilePojo unreleased) {
        this.fileId = fileId;
        this.whetherToPublish = whetherToPublish;
        this.release = release;
        this.unreleased = unreleased;
    }
}
